home *** CD-ROM | disk | FTP | other *** search
- Path: delphi.harz.de!mauser
- From: mauser@delphi.harz.de (Gerald Mauser)
- Newsgroups: comp.sys.cbm
- Subject: Re: C64 Electronics Projects
- Date: 2 Jan 1996 16:54:28 GMT
- Organization: (=?ISO-8859-1?Q?Kr=FCmelbr=F6tchenb=E4cker?=)
- Message-ID: <4cbo04$7m@gameport.delphi.harz.de>
- References: <wiz-2012951502370001@17.32.67.13> <4bq1ru$6pc@usenet.srv.cis.pitt.edu>
- NNTP-Posting-Host: titanic.delphi.harz.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [version 1.2 PL2]
-
- David M Holland (dmhst7+@pitt.edu) wrote:
- : Patrick Fleming (wiz@apple.com) wrote:
- : : Can anyone recommend a good book on C64 interfacing projects? I would like to
- : : hook up something to the cartridge port for simple electronics control.
-
- : (...) there are a lot of projects that use the user
-
- : port (same on vic and c64) so its worth a look.
-
- I personell use the user-Prot.
- It's the most simple Prot for programming.
-
- The USER-PORT is an 8-bit parralelprot + 1 dataline.
-
- The 8-bis parralel prot prograaming (PORT B)
- In adress 56579 you choose wether you whant so send or to get datas.
- POKE 56579,255 all 8 datalines for Output
- POKE 56579,0 all 8 datalines for Input
- (It it possible to hab for exapmle 3 INPUT und 5 OUTPUT lines)
-
- In Adress 56577 you poke your output datas in or you recive datas,
- depend on register 1 (adress 56579)
-
- If you use in and outputline the same time make shure not to mix
- ab the BITS
-
-
- There is also a line you can use as an extra dataline (PORT A)
-
- Is the 3 one ( Nr.2 if you start counting form Zero)
-
- In Adress 56578, bit 2 you choos wether it shut be an input or output line
- POKE 56578, PEEK(56578) AND 251 sets line for INPUT
- POKE 56578, PEEK(56578) OR 4 sets line for OUTPUT
-
- In Adress 56576 bit 2 you find your incomming Datas or you put yout
- outgoing datas in
- POKE 56576,peek(56576)or 4 line is HI
- POKE 56576,peek(56576)and251 linje is LO
-
-
- By the Way: IT IS possibel to ypou the joystickport to send OR to recive DATAS
-
- But the Programming is not that easy (well it's difficult to decribe)
-
- Intrestig is the inbuild AD-Port from the C64, used for Paddels
- IT's Part of the SID.
-
- The C64 has got to AD. The value of them are in adress 54297 and 54298
-
- Normally the AD in Joystickport 1 are used.
- Whitch Port is used you can CHOOSE in adress 56320 bit 7..
- POKE 56320,peek(56320)and(127) to use PORT 1
- POKE 56320,PEEK(56320)or128 to use PORT 2
-
- By the way the AD reactacs on resistors
-
- All right, thats all buy now. IF you got any more questions, p/m
- r you realy whant to use the Joystickport, P/M
- (By the Way to yous the JOYSTICKPORT for output is theory,
- i've never tryed this on my own).
-
- Ciao
- Gerald
-
- PS: Wher to find what on the HArdweareside: Have a look on the last pages
- of your C64 Handbock.
-
- --
- Gerald Hauser Leibnizstr. 16/2; 38678 Clausthal-Zellerfeld
- Tel. 05323-2071 E-Mail: mauser@delphi.harz.de
-